
#ifndef FLASH_H
#define FLASH_H


/* ------------------------------------------------------------------------------------------------
 *                                           Includes
 * ------------------------------------------------------------------------------------------------
 */
#include "bsp_board_defs.h"

/* One whole page of flash memory is to be reserved, i.e., 1 KiB. */
#define PAGE_SIZE 64
/* String length (exluding the terminal '\0'). */
#define DATA_AMOUNT 16

#define ENABLE_GLOBAL_INTERRUPT EA = 1//
#define DISABLE_GLOBAL_INTERRUPT EA = 0//

void flashWrite(uint8_t *Data, uint8_t Addr, uint16_t num);
void flashRead(uint8_t *Data, uint8_t Addr, uint8_t num);
void halFlashStartErase();
#endif
